package com.xms.plugin.core;

/**
 * <p>
 * 插件类型
 * </p>
 *
 * @author migo
 * @since 2021/10/15
 */
public enum PluginType {
    Entity(0, ""),
    QueryView(1, ""),
    Form(2, ""),
    WorkFlow(3, "");

    PluginType(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public boolean equals(PluginType compared) {
        return this.value() == compared.value();
    }

    public int value() {
        return value;
    }

    public String text() {
        return name;
    }

    private int value;
    private String name;
}
